<template>
  <div class="login-loading-container">
    <div class="spinner"></div>
    <p class="loading-text">正在读取设备信息中，请稍候...</p>
  </div>
</template>

<script setup>
import LoginMixin from "@/page/login/index.js";
export default {
  mixins: [LoginMixin],
  data() {
    return {
      showPassword: false,
    };
  },
  mounted() {
    this.handlePwd();
  },
};
</script>

<style scoped>
.login-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #e0f2fe, #c7d2fe); /* 淡蓝到淡紫渐变 */
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
}

/* 可以添加模糊光斑 */
.login-loading-container::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3),
    transparent 70%
  );
  filter: blur(80px);
  z-index: 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
  z-index: 1;
}

.loading-text {
  font-size: 18px;
  color: #1e3a8a; /* 深蓝色 */
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
</style>
